using System;
using System.Windows.Forms;
//using VB6 = Microsoft.VisualBasic.Compatibility.VB6.Support;

namespace VNPT.DoiSoat
{
    public partial class frmDbfLog : System.Windows.Forms.Form
	{
		public static string stPath = String.Empty;

        public frmDbfLog()
            : base()
        {
            if (instance == null)
            {
                if (InitializingInstance)
                {
                    instance = this;
                }
                else
                {
                    try
                    {
                        //For the start-up form, the first instance created is the default instance.
                        if (System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType == this.GetType())
                        {
                            instance = this;
                        }
                    }
                    catch
                    {
                    }
                }
            }
            //This call is required by the Windows Form Designer.
            InitializeComponent();
        }

        //public frmDbfLog()
        //    : base()
        //{
        //    if (m_vb6FormDefInstance == null)
        //    {
        //        if (m_InitializingDefInstance)
        //        {
        //            m_vb6FormDefInstance = this;
        //        }
        //        else
        //        {
        //            try
        //            {
        //                //For the start-up form, the first instance created is the default instance.
        //                if (System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType == this.GetType())
        //                {
        //                    m_vb6FormDefInstance = this;
        //                }
        //            }
        //            catch
        //            {
        //            }
        //        }
        //    }
        //    //This call is required by the Windows Form Designer.
        //    InitializeComponent();

        //    Form_Load();
        //}

        private void ShowLogging()
		{
            if (System.IO.File.Exists(stPath))
            {
                txtLog.LoadFile(stPath, RichTextBoxStreamType.PlainText);
            }
		}
	}
}